import type { UserInfo } from '@vben/types';

import { requestClient } from '#/api/request';

/**
 * 获取用户信息
 */
export async function getUserInfoApi() {
  return requestClient.get('/app/user/current');
}

// 获取账号列表
export async function getAccount() {
  return requestClient.get('/user/info');
}

// 获取会员列表
export async function $getUserlist(data: any,) {
  return requestClient.get('/app/member', { params: data });
}

// 更新会员信息
export async function $updateuser(id: any, data: any) {
  return requestClient.put<any>(`app/member/${id}`, data);
}
